package com.nopcomm.pages;

import org.openqa.selenium.By;

import com.nopcomm.abstractTest;

public class Homepage extends abstractTest {
	public void gotologin(String Email,String Password) {
		//Click on Nopcommerce image
		driver.findElement(By.className("logo")).click();
		//click on login link
		driver.findElement(By.className("ico-login")).click();
		//type Email
		driver.findElement(By.id("Email")).sendKeys(Email);
		//Type Password
		driver.findElement(By.id("Password")).sendKeys(Password);
		//Click to Login
		driver.findElement(By.xpath("//input[@value='Log in']")).click();	}

	public static void gotologout() {
		// Clcik to logout
		driver.findElement(By.linkText("Logout?")).click();}
	

}
